import { fa } from "element-plus/es/locale"

export interface listInt {
    id:number,
    nickname:String,
    role:RoleInt[],
    userName:String
}

export interface RoleInt {
    role:number,
    roleName:String
}
export interface selectInt {
    role:number,
    nickName:String
}
export interface roleListInt {
    authority:number[],
    roleId:number,
    roleName:String
}
export interface dialogInt {
    dialogVisible:Boolean,
    id:number,
    nickname:String,
    role:number[],
    userName:String
}

export class initData {
        selectData:selectInt  = {
            role:0,
            nickName:"",
        }
        list:listInt[] = [] //定义一个列表，列表数据基于这个接口创建
        userListSave:listInt[] = [] //定义一个列表，列表数据基于这个接口创建
        roleList:roleListInt[] = []
        dialogData:dialogInt = {
            dialogVisible:false,
            id:0,
            nickname:"",
            role:[],
            userName:""
        }
}